from building import *

cwd  = GetCurrentDir()
src = Glob('*.c')

objs = DefineGroup('applications', src, depend = [''])

#list = os.listdir(cwd)
list = ['gui_app', 'gui_demo', 'snake', 'xml_demo']
for d in list:
    path = os.path.join(cwd, d)
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs + SConscript(os.path.join(path, 'SConscript'),
								   variant_dir=d,
								   duplicate=0)			
Return('objs')